package com.seewintech.framework.service.impl;


import com.seewintech.framework.entity.Account;
import com.seewintech.framework.mapper.AccountMapper;
import com.seewintech.framework.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author by xiaoTian
 * @date 2022/6/14.
 */

@Service
public class AccountServiceImpl implements AccountService {

    @Autowired
    AccountMapper accountMapper;

    @Override
    public List<Account> selectAccountList() {
        return accountMapper.selectAccountList();
    }

    @Override
    public Account selectAccountById(Long id) {
        return accountMapper.selectAccountById(id);
    }

    @Override
    public Integer remove(Long id) {
        return accountMapper.remove(id);
    }

    @Override
    public Integer update(Account account) {
        return accountMapper.update(account);
    }

    @Override
    public Integer insert(Account account) {
        return accountMapper.insert(account);
    }

    @Override
    public Account selectAccountByName(String name) {
        return accountMapper.selectAccountByName(name);
    }

}
